<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"	
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"	        
    xmlns:p="http://primefaces.org/ui"    
    xmlns:c="http://java.sun.com/jsp/jstl/core">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
	<title>EMMY</title>
	<style type="text/css"></style>
	<script type="text/javascript" src="../javascript/script_fonk.js " />
	<link rel="stylesheet" type="text/css" href="../css/global.css" />
	<link rel="stylesheet" type="text/css" href="../css/sablondaki.css" />
	<link rel="stylesheet" type="text/css" href="../theme/stylesheet.css" />
	<link rel="stylesheet" type="text/css" title="Style"
		href="../theme/stylesheet.css" />
</h:head>
<h:body>
	<h:form styleClass="form" id="form1">
		<div id="masthead">

			<h1>
				<i>EMMY's place</i>
			</h1>

			<div id="mastheadBox">
				
			</div>
		</div>
		<!-- aşağısı menu -->
		<p:megaMenu>
			<p:submenu label="Anasayfa" icon="ui-icon-check">
				<p:column>
					<p:submenu >
						<p:menuitem value="Anasayfa" url="../pages/index.faces" />
					</p:submenu>
				</p:column>
			</p:submenu>

			<p:submenu label="Firmalar" icon="ui-icon-document">
				<p:column>
					<p:submenu >
						<p:menuitem value="Firma Listesi" url="../pages/firmaDetay.faces" />
					</p:submenu>
				</p:column>
			</p:submenu>

			<p:submenu label="Ürünler" icon="ui-icon-pencil">
				<p:column>
					<p:submenu >
						<p:menuitem value="Ürün Listesi" url="../pages/urunAramaListeleme.faces" />
					</p:submenu>
					<c:if test="${userGroup== 1 }">
						<!-- kullanıcı == musteri -->
						<p:submenu label="Ürünlerim">
							<p:menuitem value="Ürünlerim" url="#" />
							<p:menuitem value="Kayıp Çalıntı" url="#" />
						</p:submenu>
					</c:if>
				</p:column>
				<p:column>
					<c:if test="${userGroup == 2 }">	
						<!-- kullanıcı == uretici -->
						<p:submenu>
							<p:menuitem value="Ürünlerim" url="#" />
							<p:menuitem value="Yeni Ürün Ekle" url="#" />
							<p:menuitem value="Ürün Bilgileri GÜncelle" url="#" />
							<p:menuitem value="Ürün Sil" url="#" />
						</p:submenu>
					</c:if>
				
				</p:column>
			</p:submenu>
			 <c:if test="${userGroup == 2 }">
				<!-- kullanıcı == uretici -->
				<p:submenu label="Ürün Hataları" icon="ui-icon-contact">
					<p:column>
						<p:submenu>
							<p:menuitem value="Hata-Çözüm Listele" url="#" />
							<p:menuitem value="Saptanan Hataları listele" url="#" />
						</p:submenu>
					</p:column>
				</p:submenu>
			</c:if>
			 
			<p:submenu label="Yazılımlar" icon="ui-icon-contact">
				<p:column>
					<p:submenu>
						<p:menuitem value="Yazilim Listesi" url="yazilimAramaListeleme.faces" />
					</p:submenu>
					<c:if test="${userGroup == 1 }">
						<!-- kullanıcı == musteri -->
						<p:submenu>
							<p:menuitem value="Ürünlerime ait yazılımlar" url="#" />
						</p:submenu>
					</c:if>
					<c:if test="${userGroup == 2 }">	
						<!-- kullanıcı == uretici -->
						<p:submenu>
							<p:menuitem value="Yazılımlarım" url="yazilimAramaListeleme.faces" />
						</p:submenu>
					</c:if>
				</p:column>
			</p:submenu>
			<p:submenu label="Duyurular" icon="ui-icon-contact">
				<p:column>
					<p:submenu>
						<p:menuitem value="Duyuru Listesi" url="duyuruList.faces" />
					</p:submenu>
				
					<c:if test="${userGroup == 2 }">	
						<!-- kullanıcı == uretici -->
						<p:submenu>
							<p:menuitem value="Duyurularım" url="duyuruList.faces" />
						</p:submenu>
					</c:if>
				</p:column>
			</p:submenu>
			<c:choose>
				<c:when test="${userGroup == '1' }">
					<!-- kullanıcı ==müşteri -->
					<p:submenu label="Profilim" icon="ui-icon-contact">
						<p:column>
							<p:submenu>
								<p:menuitem value="Profil Detay" url="musteriProDetay.faces" />
							</p:submenu>
						</p:column>
					</p:submenu>
				</c:when>
				<c:when test="${userGroup == '2' }">
					<!-- kullanıcı == temsilci -->
					<p:submenu label="Profilim" icon="ui-icon-contact">
						<p:column>
							<p:submenu>
								<p:menuitem value="Profil Detay" url="#" />
							</p:submenu>
						</p:column>
					</p:submenu>
				</c:when>
			</c:choose>
			
			<p:menuitem value="Servis Sağlayıcı" url="iletisim.faces" icon="ui-icon-close" />
		</p:megaMenu>
	</h:form>
	<h:form>
		<ul id="breadCrumbs">
			<!-- "ustbodyarea" -->
			<h:outputLabel value="Hoşgeldiniz" />
			<!-- /tpl:insert -->
		</ul>
	</h:form>

	<div id="mainContent">
		<!-- "bodyarea" -->
		<table border="1" cellpadding="0" cellspacing="0">
			<tr valign="top">
				<td class="nylcol" width="130"><rich:calendar
						inputStyle="width: 100px" /></td>
			</tr>
		</table>
		<p>
			hello
			<ui:insert name="body" />
		</p>
	</div>

	<h:form>
		<!-- Begin Side Column -->

		<div id="secondaryContent" align="center">
			<div class="secondaryContentBox">

				<h2 align="center">
					<a href="login.faces">Üye Girişi</a>
				</h2>
				<br></br>
				<h2 align="center">
					<a href="musteriKayit.faces">Kaydol</a>
				</h2>
				<br></br> <br></br>
				<h2 align="center">
					<rich:calendar styleClass="inputMiniCalendar"
						datePattern="dd/MM/yyyy" inputStyle="width: 100px" popup="false"
						style="height: 150px; width: 140px" showWeeksBar="false" />
				</h2>
				<br></br>
			</div>

			<blockquote>

				<h2>Duyurular</h2>
				<h2>--------------------</h2>
				<table class="ny1px" border="0" cellpadding="0" cellspacing="0">
					<tr valign="top">
						<td class="nytcol"><a href="">Duyuru</a></td>
					</tr>
				</table>
				<br></br> <br></br> <br></br>

			</blockquote>


		</div>
	</h:form>
	<!-- Begin Footer -->
	<h:form>
		<ul id="footer">
			<li>&copy; KEYSAN</li>
			<li><a href="http://www.comu.edu.tr">ÇOMÜ</a></li>
			<li><a href="http://yazilimakademisi.org/">IBM Yazılım
					Akademisi</a></li>
			<li><a href="iletisim.faces">İletişim</a></li>
		</ul>
	</h:form>
</h:body>
</html>